linux: No need to manually bring VCPUs online across 'fast' save/restore.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 12 Mar 2007 14:11:43 +0000 (14:11 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 12 Mar 2007 14:11:43 +0000 (14:11 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c

index 1110e62888ea0a9b06af223e1dbd6c6bfb1c8f7a..6f6ac97195f3b06a5417008485efdc01dac8bb81 100644 (file)
@@ -84,7 +84,7 @@ static void post_suspend(int suspend_cancelled)
                        pfn_to_mfn(xen_start_info->console.domU.mfn);
        } else {
 #ifdef CONFIG_SMP
-               cpu_initialized_map = cpumask_of_cpu(0);
+               cpu_initialized_map = cpu_online_map;
 #endif
        }
 
@@ -180,20 +180,6 @@ static int take_machine_down(void *p_fast_suspend)
        time_resume();
        local_irq_enable();
 
-       if (fast_suspend && !suspend_cancelled) {
-               /*
-                * In fast-suspend mode the APs may not be brought back online
-                * when we resume. In that case we do it here.
-                */
-               for_each_online_cpu(cpu) {
-                       if (cpu == 0)
-                               continue;
-                       cpu_set_initialized(cpu);
-                       err = HYPERVISOR_vcpu_op(VCPUOP_up, cpu, NULL);
-                       BUG_ON(err);
-               }
-       }
-
        return suspend_cancelled;
 }